package com.xmut.mall.product.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 适配前端Cascader的Vo
 */
@Data
public class CateCascaderVo {

    /**
     * 相当于Id 只不过前端必须要value才能识别形成Cascader
     */
    private Long value;

    private String label; // 分类的名称

    private Integer catLevel;

//    @JsonInclude(JsonInclude.Include.NON_EMPTY)
//    private Boolean expand;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CateCascaderVo> children;
}
